import logging,unittest,time
from selenium import webdriver
from month_99.Page.Pagedata import Page
from month_99.Tools.Tools import Tools
from ddt import ddt,file_data

@ddt
class TestCase(unittest.TestCase):
    def setUp(self):
        self.driver = webdriver.Firefox()
        self.driver.implicitly_wait(10)
        Tools().log()

    def tearDown(self):
        time.sleep(3)
        self.driver.quit()

    @file_data(r'E:\gg4\PythonProject1\month_99\Data\yaml.yaml')
    def test_01(self,username,password):
        logging.info('start case')
        po = Page(self.driver)
        po.A3mall_01(username,password)
        logging.info('case end')

if __name__ == '__main__':
    unittest.main()